package com.hongyue.zuoYe.tiMu3;
/*
	有以下类定义：
动物类：
属性：名称、年龄、性别
行为：吃饭(非抽象)
猫类继承自动物
行为：捉老鼠
 */
public class DongWu {
    private String mingZi;
    private String nianLin;
    private String xingBie;

    public void ChiFan() {
        System.out.println("动物吃饭");
    }

    public DongWu(String mingZi, String nianLin, String xingBie) {
        this.mingZi = mingZi;
        this.nianLin = nianLin;
        this.xingBie = xingBie;
    }

    public DongWu() {
    }

    public String getMingZi() {
        return mingZi;
    }

    public void setMingZi(String mingZi) {
        this.mingZi = mingZi;
    }

    public String getNianLin() {
        return nianLin;
    }

    public void setNianLin(String nianLin) {
        this.nianLin = nianLin;
    }

    public String getXingBie() {
        return xingBie;
    }

    public void setXingBie(String xingBie) {
        this.xingBie = xingBie;
    }
}
